import { Pipe, PipeTransform } from '@angular/core';


@Pipe({
  name: 'sexRe'
})
export class SexRePipe implements PipeTransform {

  transform(value: any, args?: any): any {
    switch (value) {
    	case "1":
    		return '男'
    		
    	case "2":
    		return "女"
    	default:
    		return args || "未填"
    }
  }

}
